import api from './common/config.js'
let Getajax = api.Getajax
//http://152.136.195.147/api/user/profile

//头像保存
export function releupload(avatar) {
	return Getajax({
				url:'/api/user/profile',
				type:'post',
				data:{
					avatar:avatar
				}
			})
}
//http://152.136.195.147/api/user/get_user_info
//显示头像
export function headlook() {
	return Getajax({
				url:'/api/user/get_user_info',
				type:'post',
				data:{}
			})
};
//http://152.136.195.147/api/user/profile
//修改性别
export function uploadsex(gender) {
	return Getajax({
				url:'/api/user/profile',
				type:'post',
				data:{
					gender:gender,
				}
			})
};


//http://152.136.195.147/api/user/profile
//修改昵称
export function uploadname(nickname) {
	return Getajax({
					url:'/api/user/profile',
					type:'post',
					data:{
						nickname:nickname,
					}
				})
	}
//http://152.136.195.147/api/zhang/vip/get_info
//查询会员
export function getuserinfo( ){
	return Getajax({
				url:'/api/zhang/vip/get_info',
				type:'post',
				data:{
				}
	})
}
//http://152.136.195.147/api/zhang/vip/open_renew
//支付订单
export function payorder(data){
	return Getajax({
		url:'/api/zhang/vip/open_renew',
		type:'post',
		data:data	
	})
}
//user/changeemail
//修改邮箱
export  function Getemail(data) {
	return Getajax({
		url:'/api/user/changeemail',
		type:'post',
		data:data
	})
}
//手机号验证
export function sendSMS(data){
	return Getajax({
		url:'/api/user/sendSMS',
		type:'post',
		data:data
	})
}
//邮箱验证
export function sendEms(data){
	return Getajax({
		url:'/api/user/sendEms',
		type:'post',
		data:data
	})
}
export function resetpwd(data){
	return Getajax({
		url:'/api/user/resetpwd',
		type:'post',
		data:data
	})
}
//修改手机号
export function changemoblie(data){
	return Getajax({
		url:'/api/user/changemobile',
		type:'post',
		data:data
	})
}
//签到
export function todaySign(){
	return Getajax({
		url:'/api/home/todaySign',
		type:'post',
		data:{}
	})
}
//日历表
export function signIn(){
	return Getajax({
		url:'/api/home/signIn',
		type:'post',
		data:{}
	})
}
//用户排名
export function getSort(data){
	return Getajax({
		url:'/api/home/getSortSign',
		type:'post',
		data:data
	})
}
//查询余额
export function getMoney(data){
	return Getajax({
		url:'/api/zhang/Wallet/get_money',
		type:'post',
		data:data
	})
}
//收入明细
export function  getinwater(data){
	return Getajax({
		url:'/api/zhang/wallet/get_in_water',
		type:'post',
		data:data
	})
}
//支出明细
export function getoutwart(data){
	return Getajax({
		url:'/api/zhang/wallet/get_out_water',
		type:'post',
		data:data
	})
}
//充值
export function recharge(data){
	return Getajax({
		url:'/api/zhang/wallet/recharge',
		type:'post',
		data:data
	})
}
//我的课程
export function mycurriculum(data){
	return Getajax({
		url:'/api/Curriculum/my_curriculum',
		type:'post',
		data:data
	})
}
//查询订单 
export function OrderIndex(data){
	return Getajax({
		url:'/api/order/index',
		type:'post',
		data:data
	})
}
//删除订单
export function OrderDelete(data){
	return Getajax({
		url:'/api/order/delete',
		type:'post',
		data:data
	})
}
//取消订单
export function OrderCancel(data){
	return Getajax({
		url:'/api/order/cancel',
		type:'post',
		data:data
	})
}
//支付
export function OrderPay(data){
	return Getajax({
		url:'/api/order/pay',
		type:'post',
		data:data
	})
}
//拉取微信支付
export function experience(data){
	return Getajax({
		url:'/addons/epay/index/experience',
		type:'post',
		data:data
	})
}
//订单列表
export function  Detail(data){
	return Getajax({
		url:'/api/assists/detail',
		type:'post',
		data:data
	})
}
//
export function Curriculumdetail(data){
	return Getajax({
		url:'/api/Curriculum/detail',
		type:'post',
		data:data
	})
}
//课程我的收藏
export function CMYcollect(data){
	return Getajax({
		url:'/api/Curriculum/my_collect',
		type:'post',
		data:data
	})
}
//取消收藏
export function cancelcollect(data){
	return Getajax({
		url:'/api/Curriculum/cancel_collect',
		type:'post',
		data:data
	})
}
//试卷收藏
export function collectList(data){
	return Getajax({
		url:'/api/question_bank/collect_list',
		type:'post',
		data:data
	})
}
//取消收藏
export function collect(data){
	return Getajax({
		url:'/api/question_bank/collect',
		type:'post',
		data:data
	})
}
//试题收藏
export function Ecollectlist(data){
	return Getajax({
		url:'/api/Examination/collect_list',
		type:'post',
		data:data
	})
}
//取消收藏
export function Ecollect(data){
	return Getajax({
		url:'/api/Examination/collect',
		type:'post',
		data:data
	})
}
//咨询收藏
export function getinfocollect(data){
	return Getajax({
		url:'/api/zhang/collect/get_info_collect',
		type:'post',
		data:data
	})
}
//取消收藏
export function Recruitinformation(data){
	return Getajax({
		url:'api/zhang/Recruitinformation/collect_info',
		type:'post',
		data:data
	})
}
//公司收藏
export function mycollect(data){
	return Getajax({
		url:'/api/company/my_collect',
		type:'post',
		data:data
	})
}
//取消收藏
export function cancelformation(data){
	return Getajax({
		url:'/api/company/cancel_collect',
		type:'post',
		data:data
	})
}
//获取做题记录
export function  Examinationindex(data){
	return Getajax({
		url:'/api/Examination/index',
		type:'post',
		data:data
	})
}
//错题
export function Examinationlist(data){
	return Getajax({
		url:'/api/Examination/error_list',
		type:'post',
		data:data
	})
}
export function correctList(data){
	return Getajax({
		url:'/api/correct/get_error_list',
		type:'post',
		data:data
	})
}
//试题纠错
export function Correcterror(data){
	return Getajax({
		url:'/api/Correct/error_correction',
		type:'post',
		data:data
	})
}
//标记
export function signitem(data){
	return Getajax({
		url:'/api/Examination/sign_item',
		type:'post',
		data:data
	})
}
//标记
export function cancelsign(data){
	return Getajax({
		url:'/api/Examination/cancel_sign',
		type:'post',
		data:data
	})
}
//试题纠错
export function correctlist(data){
	return Getajax({
		url:'/api/Examination/cancel_sign',
		type:'post',
		data:data
	})
}
//问题反馈
export function createlist(data){
	return Getajax({
		url:'/api/feedback/create',
		type:'post',
		data:data
	})
}
//注册
export function register(data){
	return Getajax({
		url:'/api/user/register',
		type:'post',
		data:data
	})
}
